<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="kuakao" uri="http://www.kuakao.net/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>功能点管理</title>
    <link href="${pageContext.request.contextPath}/style/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/tool/superTables/superTables.css" />

	<script language="javascript" type="text/javascript"	src="${pageContext.request.contextPath}/tool/jquery/jquery.min.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/js/common.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/tool/superTables/superTables.js"></script>
	<script type="text/javascript">
	var resetPwd = function(userId){
		$.post('${pageContext.request.contextPath}/admin/security/do_reset_pwd.action?userId='+userId,function(data){
			alert(data);
			location.reload();
		})
	}
	</script>
</head>
<body>
<div class="mainCon">
  <div class="mCon">
    <div class="main_32">
      <div class="main_adr">
      当前位置：
<span>权限管理</span>
&gt;
<span class="orange">用户管理</span>
      </div>

    </div>
    <div class="mCon_list">
		<form action="${pageContext.request.contextPath}/admin/securityUser/index.action" method="get">
      <div class="inke_cler">
      	<div class="left">
          <div class="mCon_1t mCon_2t">ID：</div>
          <div class="mCon_con mCon_con2 inke_con2">
			<input class="mCon_int" type="text" style="width:200px;" name="s1" value="${_page.s1}" onblur="this.className='mCon_int'" onfocus="this.className+=' mCon_int int_yewBg'">
		  </div>
        </div>
        <div class="left">
          <div class="mCon_1t mCon_2t">用户名：</div>
          <div class="mCon_con mCon_con2 inke_con2">
			<input class="mCon_int" type="text" style="width:200px;" name="s2" value="${_page.s2}" onblur="this.className='mCon_int'" onfocus="this.className+=' mCon_int int_yewBg'">
		  </div>
        </div>
        <div class="clear"></div>
      </div>
      
      <div class="clear_con"></div>
      <div class="mCon_con mCon_con2">

        <input type="submit" value="查 询" name="" class="mCon_btn2 qued">
      </div>
      </form>
      <div class="clear"></div>
    </div>
    
    <div class="clear"></div>
    <div class="mCon_tab">
      <ul>
        <li><span class="mCon_1cuta">列表</span></li>
		<li><a class="mCon_1cuta" href="${pageContext.request.contextPath}/admin/securityUser/to_add.action">添加</a></li>
      </ul>
    </div>
    <div class="main_list fakeContainer">
      <table id="show_table" width="100%" border="1" cellspacing="0" cellpadding="0">
        <tr class="main_title main_title2">
          <td>操作</td>
          <td>ID</td>
          <td>用户名</td>

          <td>管理模块</td>
        </tr>
        <c:if test="${!empty users}">
        <c:forEach items="${users}" var="user">
        
        <tr class="main_td">
          <td>
          	<a title="编辑" href="${pageContext.request.contextPath}/admin/securityUser/to_edit.action?id=${user.id}"><img class="admin_sq" src="${pageContext.request.contextPath}/images/b_edit.png" /></a>
          	<a title="重置密码" href="javascript:resetPwd(${user.id});"><img class="admin_sq" src="${pageContext.request.contextPath}/images/refresh.png" /></a>
          	<a title="删除" href="javascript:commonDel('${pageContext.request.contextPath}/admin/securityUser/do_remove.action',{'id':'${user.id}'});"><img class="admin_sq" src="${pageContext.request.contextPath}/images/b_drop.png" /></a>
          </td>
          <td>${user.id}</td>
          <td>${user.username}</td>

          <td>${user.modulesStr}</td>
        </tr>
        </c:forEach>
        </c:if>
        
      </table>
    </div>
    <div class="scxz">
      	<div class="page">
			<kuakao:page template="pager/newAdminPager.ftl"></kuakao:page>
		</div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
<script type="text/javascript">
	$(function() {
		new superTable("show_table", {
			cssSkin : "sSky",
			fixedCols : 3
		});
})
</script>
</body>
</html>


